home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Reference / the cmsp digests ('94-'97) / csmp digest Vol 3 No 045 < prev    next >
Internet Message Format  |  1997-05-06  |  65KB

  1. From: pottier@clipper.ens.fr (Francois Pottier)
  2. Subject: csmp-digest-v3-045
  3. Date: Thu, 14 Jul 1994 13:12:02 +0200 (MET DST)
  4.  
  5. C.S.M.P. Digest             Thu, 14 Jul 94       Volume 3 : Issue 45
  6.  
  7. Today's Topics:
  8.  
  9.         AppleShare programming?
  10.         Composing and INIT *NARF*
  11.         FSSpec of own INIT
  12.         Help: DragGrayRgn() Action Proc
  13.         Learning TCP
  14.         Modal Dialog Filter & Delete key
  15.         OLE on the Macintosh
  16.         Omission in Universal Headers: TrackControl()
  17.         Where does data go when no PPCRead is pending?
  18.  
  19.  
  20.  
  21. The Comp.Sys.Mac.Programmer Digest is moderated by Francois Pottier
  22. (pottier@clipper.ens.fr).
  23.  
  24. The digest is a collection of article threads from the internet newsgroup
  25. comp.sys.mac.programmer.  It is designed for people who read c.s.m.p. semi-
  26. regularly and want an archive of the discussions.  If you don't know what a
  27. newsgroup is, you probably don't have access to it.  Ask your systems
  28. administrator(s) for details.  If you don't have access to news, you may
  29. still be able to post messages to the group by using a mail server like
  30. anon.penet.fi (mail help@anon.penet.fi for more information).
  31.  
  32. Each issue of the digest contains one or more sets of articles (called
  33. threads), with each set corresponding to a 'discussion' of a particular
  34. subject.  The articles are not edited; all articles included in this digest
  35. are in their original posted form (as received by our news server at
  36. nef.ens.fr).  Article threads are not added to the digest until the last
  37. article added to the thread is at least two weeks old (this is to ensure that
  38. the thread is dead before adding it to the digest).  Article threads that
  39. consist of only one message are generally not included in the digest.
  40.  
  41. The digest is officially distributed by two means, by email and ftp.
  42.  
  43. If you want to receive the digest by mail, send email to listserv@ens.fr
  44. with no subject and one of the following commands as body:
  45.     help                        Sends you a summary of commands
  46.     subscribe csmp-digest Your Name    Adds you to the mailing list
  47.     signoff csmp-digest            Removes you from the list
  48. Once you have subscribed, you will automatically receive each new
  49. issue as it is created.
  50.  
  51. The official ftp info is //ftp.dartmouth.edu/pub/csmp-digest.
  52. Questions related to the ftp site should be directed to
  53. scott.silver@dartmouth.edu. Currently no previous volumes of the CSMP
  54. digest are available there.
  55.  
  56. Also, the digests are available to WAIS users.  To search back issues
  57. with WAIS, use comp.sys.mac.programmer.src. With Mosaic, use
  58. http://www.wais.com/wais-dbs/comp.sys.mac.programmer.html.
  59.  
  60.  
  61. -------------------------------------------------------
  62.  
  63. >From marcn@cs.uiuc.edu (Marc Nardulli)
  64. Subject: AppleShare programming?
  65. Date: 28 Jun 1994 20:04:09 GMT
  66. Organization: University of Illinois
  67.  
  68. Hello all,
  69.     I am looking for an easy way to allow users to log on to
  70. one of our Mac servers through Appleshare by using their Unix
  71. logon and password.  I have heard that there is some sort
  72. of AppleShare API out there, but I don't know anything 
  73. beyond that.  Does anybody know if the AppleShare API
  74. can be used for the purpose I want it for, and if so,
  75. where I might be able to get it?
  76.                 Thanks a lot,
  77.                                 Marc
  78.  
  79. - ---------------------------------------------
  80. Marc Nardulli        e-mail:marcn@ncsa.uiuc.edu
  81. Phone:               (217) 333-0158
  82. NCSA Mac Team
  83.  
  84. +++++++++++++++++++++++++++
  85.  
  86. >From rmah@panix.com (Robert S. Mah)
  87. Date: Tue, 28 Jun 1994 20:12:33 -0500
  88. Organization: One Step Beyond
  89.  
  90. marcn@cs.uiuc.edu (Marc Nardulli) wrote:
  91.  
  92. > I am looking for an easy way to allow users to log on to one of our Mac
  93. > servers through Appleshare by using their Unix logon and password.  I
  94. > have heard that there is some sort of AppleShare API out there, but I
  95. > don't know anything beyond that.  Does anybody know if the AppleShare
  96. > API can be used for the purpose I want it for, and if so, where I might
  97. > be able to get it?
  98.  
  99. You can purchase the AppleShare development kit from APDA.  I'm not sure
  100. if you can change the username/passwords in the users & groups files
  101. using the kit.
  102.  
  103. Cheers,
  104. Rob
  105. ___________________________________________________________________________
  106. Robert S. Mah  -=-  One Step Beyond  -=-  212-947-6507  -=-  rmah@panix.com
  107.  
  108. +++++++++++++++++++++++++++
  109.  
  110. >From jumplong@aol.com (Jump Long)
  111. Date: 29 Jun 1994 02:48:05 -0400
  112. Organization: America Online, Inc. (1-800-827-6364)
  113.  
  114. In article <rmah-280694201233@rmah.dialup.access.net>, rmah@panix.com
  115. (Robert S. Mah) writes:
  116.  
  117. >marcn@cs.uiuc.edu (Marc Nardulli) wrote:
  118. >
  119. >> I am looking for an easy way to allow users to log on to one of
  120. our Mac
  121. >> servers through Appleshare by using their Unix logon and password.
  122.  I
  123. >> have heard that there is some sort of AppleShare API out there,
  124. but I
  125. >> don't know anything beyond that.  Does anybody know if the
  126. AppleShare
  127. >> API can be used for the purpose I want it for, and if so, where I
  128. might
  129. >> be able to get it?
  130. >
  131. >You can purchase the AppleShare development kit from APDA.  I'm not
  132. sure
  133. >if you can change the username/passwords in the users & groups files
  134. >using the kit.
  135.  
  136. That's the AppleShare 3.0 Developer's Kit from APDA (last time I
  137. looked, it was around $99 US).
  138.  
  139. The UGLibrary interface that part of that kit gives you write access
  140. to the Users & Groups Data File *only* while the file server and
  141. AppleShare Admin (if you're using AppleShare) are *not* running. 
  142. There is not shared write access to the Users & Groups Data File
  143. between the server software and the UGLibrary interface - however,
  144. you can get read access to the Users & Groups Data File at any time.
  145.  
  146. One thing to note that many developers seem to miss...
  147.  
  148. Notice that the name of that SDK is "AppleShare 3.0 Developer's Kit",
  149. not "AppleShare Forever Developer's Kit". That means that it works
  150. with AppleShare 3.0 and AFP file servers based on the AppleShare 3.0
  151. source code.  That includes Macintosh File Sharing, AppleShare Pro,
  152. and AppleShare 4.0.x.  Most of the current AppleShare server code
  153. (and the SDK) is around 4 years old and it is based on the AppleShare
  154. 2.0 and 1.0 server code which is even older.  At some point, Apple
  155. will have to rewrite the server to add new features or to improve its
  156. performance.
  157.  
  158. Since UGLibrary is an object file that you link into your program, by
  159. using that code, you're making your program depend on the current
  160. implementations of the server and of the file format of the Users &
  161. Groups Data File.  If some future version of AppleShare no longer
  162. supports the current format of the Users & Groups Data File, your
  163. program will cease to work.  It not like a Trap where we can keep the
  164. API, but change the implementation beneath.
  165.  
  166. - Jim Luther
  167.  
  168.  
  169. +++++++++++++++++++++++++++
  170.  
  171. >From dnebing@andy.bgsu.edu (bgsuvax)
  172. Date: 29 Jun 1994 14:15:07 GMT
  173. Organization: Bowling Green State University
  174.  
  175. jumplong@aol.com (Jump Long) writes:
  176. > One thing to note that many developers seem to miss...
  177. > Notice that the name of that SDK is "AppleShare 3.0 Developer's Kit",
  178. > not "AppleShare Forever Developer's Kit". That means that it works
  179. > with AppleShare 3.0 and AFP file servers based on the AppleShare 3.0
  180. > source code.  That includes Macintosh File Sharing, AppleShare Pro,
  181. > and AppleShare 4.0.x.  Most of the current AppleShare server code
  182. > (and the SDK) is around 4 years old and it is based on the AppleShare
  183. > 2.0 and 1.0 server code which is even older.  At some point, Apple
  184. > will have to rewrite the server to add new features or to improve its
  185. > performance.
  186.  
  187.   I think that you miss-represent the developer's kit here, Jim.
  188. While the dev kit will work with full blown servers, some of the
  189. implementations do *not* work with system 7 file sharing.  There
  190. are numerous examples of this, the most important is the fact that
  191. on a sys7 server it is not possible to get the list of connected
  192. users (boy what a *big* missing piece, too).
  193.  
  194.   I must admit that I miss this capability.  I miss it so much that
  195. I tried to find out how the File Sharing Monitory does it.  By
  196. setting a trap break on the list manager trap selector (pack
  197. something or another) I was able to see how it was building the
  198. list of mounted volumes, but it uses some other method to build
  199. the list of connected users.
  200.  
  201.   I have even gone as far as trying to find a username for the
  202. connected user stored somewhere in memory (by searching with
  203. Macsbug) but no luck.
  204.  
  205.   As a side note, has anyone out there in net land figured out
  206. how to get this list?
  207.  
  208. Dave
  209.  
  210. ============================================================
  211. Dave Nebinger                    dnebing@andy.bgsu.edu
  212. Network Manager, Biology Dept.   dnebing@opie.bgsu.edu
  213. Bowling Green State University   dnebing@bgsuopie (bitnet)
  214. Bowling Green, OH 43403          #include <std_disclaimer.h>
  215.  
  216.              *THE* alt.sources.mac supporter!
  217.  
  218. +++++++++++++++++++++++++++
  219.  
  220. >From dnebing@andy.bgsu.edu (bgsuvax)
  221. Date: 29 Jun 1994 14:29:26 GMT
  222. Organization: Bowling Green State University
  223.  
  224. As a side note to the discussion of the appleshare
  225. dev kit, I have ported the pascal code which demos
  226. how to use the kit.  If anyone is interested, send
  227. me email.  Note that I will not supply the headers,
  228. you have to have the dev kit to get those (I wouldn't
  229. want to steal that $99 from apda :(
  230.  
  231. Dave
  232.  
  233. ============================================================
  234. Dave Nebinger                    dnebing@andy.bgsu.edu
  235. Network Manager, Biology Dept.   dnebing@opie.bgsu.edu
  236. Bowling Green State University   dnebing@bgsuopie (bitnet)
  237. Bowling Green, OH 43403          #include <std_disclaimer.h>
  238.  
  239.              *THE* alt.sources.mac supporter!
  240.  
  241. +++++++++++++++++++++++++++
  242.  
  243. >From marcn@sparc2.cs.uiuc.edu (Marc Nardulli)
  244. Date: 29 Jun 94 16:30:43 GMT
  245. Organization: University of Illinois at Urbana
  246.  
  247. jumplong@aol.com (Jump Long) writes:
  248.  
  249. >>You can purchase the AppleShare development kit from APDA.  I'm not
  250. >sure
  251. >>if you can change the username/passwords in the users & groups files
  252. >>using the kit.
  253.  
  254. >That's the AppleShare 3.0 Developer's Kit from APDA (last time I
  255. >looked, it was around $99 US).
  256.  
  257. >The UGLibrary interface that part of that kit gives you write access
  258. >to the Users & Groups Data File *only* while the file server and
  259. >AppleShare Admin (if you're using AppleShare) are *not* running. 
  260. >There is not shared write access to the Users & Groups Data File
  261. >between the server software and the UGLibrary interface - however,
  262. >you can get read access to the Users & Groups Data File at any time.
  263.  
  264. You mentioned that there was no way that you can change user's and
  265. passwords with the SDK while the server is running.  What I would
  266. like AppleShare do when a user logons on is to:
  267.  
  268. (1) Check the Users & Groups Data File to see if the correct user
  269.     and password are in there.  If they are then let them in.
  270.  
  271. (2) Check and see if the given user and password would authenticate
  272.     on one of our Unix servers.  If it would then let them on
  273.     and then update the Users & Groups Data File to hold the 
  274.     new user and password (note: user might not be new).
  275.  
  276. Is there any way that this is possible.  From your description of
  277. the AppleShare SDK, it can't.  Is there another way that I am overlooking?
  278. Any help would be appreciated.
  279.     Thanks,
  280.         Marc
  281.     
  282.  
  283. -- 
  284. Marc Nardulli             e:marcn@ncsa.uiuc.edu
  285. C&C Mac Team
  286. National Center for Supercomputing Applications
  287.  
  288. +++++++++++++++++++++++++++
  289.  
  290. >From jumplong@aol.com (Jump Long)
  291. Date: 30 Jun 1994 00:17:05 -0400
  292. Organization: America Online, Inc. (1-800-827-6364)
  293.  
  294. In article <2urvlb$q1f@falcon.bgsu.edu>, dnebing@andy.bgsu.edu
  295. (bgsuvax) writes:
  296.  
  297. > I think that you miss-represent the developer's kit here, Jim.
  298. > While the dev kit will work with full blown servers, some of the
  299. > implementations do *not* work with system 7 file sharing.
  300.  
  301. I didn't mean to misrepresent anything, but you're right, File
  302. Sharing doesn't implement the full AppleShare server control API.  I
  303. guess that's why it isn't called the AppleShare/File Sharing
  304. Developer's Kit :)
  305.  
  306. We could have just said that it was supported by AppleShare only. 
  307. However, I wrote most the original draft of the documentation and the
  308. only reason we even mentioned File Sharing is because I took the time
  309. to try every server control call under File Sharing, and if File
  310. Sharing didn't work the way AppleShare did, document it that way.  I
  311. figured it was better to get most of the interface than to get the
  312. message "that isn't supported" from Apple.
  313.  
  314. > As a side note to the discussion of the appleshare
  315. > dev kit, I have ported the pascal code which demos
  316. > how to use the kit.
  317.  
  318. I'm interested. I wrote the Pascal code and I've ported some of the
  319. code to C myself. During the process, I've found a few things that
  320. may cause problems in the future. If you send me your port, I'll put
  321. in the fixes and return it to you.  How's that for service?
  322.  
  323. - Jim Luther
  324.  
  325.  
  326. ---------------------------
  327.  
  328. >From Chuck Simciak <simciac@ccsmtp.ccf.org>
  329. Subject: Composing and INIT *NARF*
  330. Date: Tue, 28 Jun 1994 20:44:48 GMT
  331. Organization: Cleveland Clinic Foundation
  332.  
  333. I've searched high and low through my THINK C 7.0 manual,
  334. to the tech notes on my BookmarkCD.  I can't find anything
  335. on how to display an icon from an INIT during startup.  And
  336. more importantly how to "animate" the icon.  Everything
  337. I've found rambles about A5 worlds.  Couldn't find it in
  338. the FAQ, err...actually I couldn't find the FAQ.  (where is
  339. it?) Sample code would be tre-cool, particularly in
  340. Symantec THINK C which may or may not be tre-cool.
  341.  
  342. thanx....
  343.  
  344.     Chuck Simciak     !"Aw, forget it.  I'm done.  Here, have some
  345.    wxs@po.cwru.edu    ! dynamite down yer pants."
  346. simciac@ccsmtp.ccf.org!         - Slappy Squirrel
  347. WRUW 91.1 FM Cleveland!
  348.  
  349. +++++++++++++++++++++++++++
  350.  
  351. >From kenlong@netcom.com (Ken Long)
  352. Date: Wed, 29 Jun 1994 04:23:11 GMT
  353. Organization: NETCOM On-line Communication Services (408 261-4700 guest)
  354.  
  355. Connect to ftp ftp.uu.net and scout around to find all the faqs.  I 
  356. believe they are in the /usenet directory.
  357.  
  358. Then, connect to sumex and get the MacFTP list.  Or get it via Gopher 
  359. from MERIT (U. Michigan).  Somewhere in this info you'll find the ftp 
  360. site for alt.sources.mac.  I posted a developer kit, which I got from 
  361. AOL, which contains working shells - I tried them - for a Control Panel, 
  362. an INIT and a patch.
  363.  
  364. There are other ones out there.  Every once in a while, some new 
  365. programmer tries to do an INIT, control panel or a patch.  He has a hard 
  366. time of it.  But when he finally gets it, he gets so tickled with 
  367. himself, that he'll make shells for them and post them.  Those are not 
  368. the only people that post them, but it happens.
  369.  
  370. Some programmers that know how to do them, or do them a little better 
  371. than the kits or shells out there, or to fill a compatability need, will 
  372. also post them.
  373.  
  374. As far as just getting an INIT icon to show up, there are several 
  375. routes.  Get a source project for an init or control panel that already 
  376. does it and see how it's done.  Mark Pilgrim has put out several, such as 
  377. his "Mouse" series.  Jim Walker puts out a "ShowIcon7" source - available 
  378. in his directory, on the U. South Carolina ftp - along with other source.
  379.  
  380. There are INIT and control panel sources which come with Think C, but I 
  381. don't think there's any showInit source there (I don't mess with them much).
  382.  
  383. The original ShowInitIcon source has been updated and is in distribution, 
  384. too.
  385.  
  386. What I do, when I "want to be on the net, but am bored with everything 
  387. I've done so far" is I go down the ftp list and connect to new sites, see 
  388. what they have, get directory indexes, etc.  I've also noticed that many 
  389. colleges have  ftp's that may not be on the Mac ftp list. "ftp.cs.any.edu" 
  390. - a college would have to be very primative to not have a computer 
  391. science class or department (.cs.).
  392.  
  393. Check at ftp.apple.com, too.  Get their file list containing all their 
  394. files and you're bound to find at least ONE init or control panel source 
  395. that shows load icons, that works.
  396.  
  397. But there are plenty of them out there.  Enought to start putting "yet 
  398. another" prefixes on them.
  399.  
  400. -Ken-
  401.  
  402. +++++++++++++++++++++++++++
  403.  
  404. >From WalrathW@rferl.org (Wayne Walrath)
  405. Date: Thu, 30 Jun 1994 15:52:01 +0100
  406. Organization: RFE/RL Inc.
  407.  
  408. In article <1994Jun28.204448.5858@bme.ri.ccf.org>, Chuck Simciak
  409. <simciac@ccsmtp.ccf.org> wrote:
  410.  
  411. > I've searched high and low through my THINK C 7.0 manual,
  412. > to the tech notes on my BookmarkCD.  I can't find anything
  413. > on how to display an icon from an INIT during startup.  And
  414. > more importantly how to "animate" the icon.  Everything
  415. > I've found rambles about A5 worlds.  Couldn't find it in
  416. > the FAQ, err...actually I couldn't find the FAQ.  (where is
  417. > it?) Sample code would be tre-cool, particularly in
  418. > Symantec THINK C which may or may not be tre-cool.
  419. > thanx....
  420. >     Chuck Simciak     !"Aw, forget it.  I'm done.  Here, have some
  421. >    wxs@po.cwru.edu    ! dynamite down yer pants."
  422. > simciac@ccsmtp.ccf.org!         - Slappy Squirrel
  423. > WRUW 91.1 FM Cleveland!
  424.  
  425. Look for ShowIcon7 at umich
  426.  
  427. path: mirror/umich-mac/development/source/showicon7.sit.hqx
  428.  
  429. Here's some info from the .c file.
  430.  
  431.  
  432. >    ShowIcon7.c          ShowINIT compatible routine that shows 'ICN#' and 'iclx'
  433. >flavor icons.     For use by all INITs in System 7 and beyond.          This code
  434. >is based on Patrick C. Beard's ShowIconFamily     by Patrick C. Beard,
  435. >which in turn was derived from the     original ShowInit by Paul Mercer,
  436. >Darin Adler,     Paul Snively, and Steve Capps.          Modified by James W.
  437. >Walker for compatibility with IconWrap 1.2,     for use as a separate code
  438. >resource, and to use the new System 7     icon-drawing routines.  This code
  439. >is in the public domain.          Addresses for James W. Walker:
  440. >76367,2271@compuserve.com or         walkerj@math.scarolina.edu
  441.  
  442. As for animating it, I presume that isn't too hard to do using different
  443. icons. I've never used this code so I can't really comment.
  444.  
  445. -wayne
  446.  
  447. __ __
  448. Wayne Walrath
  449. walrathw@rferl.org
  450.  
  451. ---------------------------
  452.  
  453. >From EJ_Campbell@onenet.com (EJ Campbell)
  454. Subject: FSSpec of own INIT
  455. Date: 29 Jun 1994 18:31:18 -0000
  456. Organization: (none)
  457.  
  458. I want to open the data fork during startup of an INIT I am writing.  Does
  459. anyone know how to do this??  I want to be able to find it know matter where
  460. it is in the System Folder.  I just need a rutine that will return the FSSpec
  461. of my INIT.  Can this be done?? 
  462.  
  463. Thanks
  464.   -EJ-
  465. ***
  466. The opinions expressed above are those of the individual
  467. ***
  468. Sent from the founding system of the OneNet Member Network, OneNet Los Altos
  469. OneNet is a global network of FirstClass based communications servers.
  470. For more information, contact OneNet at:
  471. modem:415-948-1349, voice:303-444-2205, email:onenet@onenet.com
  472. ***
  473.  
  474. +++++++++++++++++++++++++++
  475.  
  476. >From resnick@uiuc.edu (Pete Resnick)
  477. Date: Thu, 30 Jun 1994 14:14:27 -0500
  478. Organization: University of Illinois at Urbana-Champaign
  479.  
  480. In article <-1829580993.32366611@onla.onenet.com>, EJ_Campbell@onenet.com wrote:
  481.  
  482. >I want to open the data fork during startup of an INIT I am writing.  Does
  483. >anyone know how to do this??  I want to be able to find it know matter where
  484. >it is in the System Folder.  I just need a rutine that will return the FSSpec
  485. >of my INIT.  Can this be done?? 
  486.  
  487. Someone should put this code in the FAQ. Upon entering the INIT code,
  488. CurResFile will be the resource file. Pass the result of CurResFile to the
  489. following:
  490.  
  491. OSErr RefNumToFSSpec(short refNum, FSSpecPtr fileSpec)
  492. {
  493.     OSErr errCode;
  494.     FCBPBRec fcb;
  495.     Str63 tempString;
  496.     
  497.     fcb.ioCompletion = nil;
  498.     fcb.ioNamePtr = tempString;
  499.     fcb.ioVRefNum = 0;
  500.     fcb.ioRefNum = refNum;
  501.     fcb.ioFCBIndx = 0L;
  502.     if((errCode = PBGetFCBInfoSync(&fcb)) == noErr) {
  503.         if(TrapAvailable(_Gestalt) &&
  504.            HasGestaltAttr(gestaltFSAttr, gestaltHasFSSpecCalls)) {
  505.             errCode = FSMakeFSSpec(fcb.ioFCBVRefNum,
  506.                                    fcb.ioFCBParID,
  507.                                    tempString,
  508.                                    fileSpec);
  509.         } else {
  510.             fileSpec->vRefNum = fcb.ioFCBVRefNum;
  511.             fileSpec->parID = fcb.ioFCBParID;
  512.             BlockMove(tempString, fileSpec->name, tempString[0]  +  1);
  513.         }
  514.     }
  515.     return(errCode);
  516. }
  517.  
  518. Just in case you are curious:
  519.  
  520. Boolean TrapAvailable(short theTrap)
  521. {
  522.     long trapAddress;
  523.     
  524.     if(theTrap & 0x0800) {
  525.         trapAddress = GetOSTrapAddress(theTrap);
  526.     } else {
  527.         if(theTrap & 0x0200) {
  528.             trapAddress = GetToolTrapAddress(_InitGraf);
  529.             if(trapAddress == GetToolTrapAddress(_InitGraf+0x0200))
  530.                 return(false);
  531.         }
  532.         trapAddress = GetToolTrapAddress(theTrap);
  533.     }
  534.     return(trapAddress != GetToolTrapAddress(_Unimplemented));
  535. }
  536.  
  537. #pragma parameter __A0 GestaltIL(__D0)
  538. long GestaltIL(long selector) = {0xA1AD,0x6702,0x91C8};
  539. #define HasGestaltAttr(x,y) (GestaltIL(x) & (1 << y))
  540.  
  541. pr
  542. -- 
  543. Pete Resnick        (...so what is a mojo, and why would one be rising?)
  544. Doctoral Student - Philosophy Department, Gregory Hall, UIUC
  545. System manager - Cognitive Science Group, Beckman Institute, UIUC
  546. Internet: resnick@uiuc.edu
  547.  
  548. ---------------------------
  549.  
  550. >From jcaufiel@cln.etc.bc.ca (Jannice Caufield)
  551. Subject: Help: DragGrayRgn() Action Proc
  552. Date: Tue, 28 Jun 1994 14:35:39 GMT
  553. Organization: Education Technology Centre of B.C.
  554.  
  555.  
  556. I am attempting to use DragGrayRgn() with an actionProc which
  557. updates various graphics as the mouse enters their region.
  558. Specifically, I use CopyBits() and CopyMask() to update the
  559. graphics.  I am attempting to achieve a result similar to the
  560. Finder's highlighting of screen icons as other icons are dragged
  561. across them.
  562.  
  563. My problem is that it appears as though DragGrayRgn() calls
  564. InvertRgn() to update the drag region.  My calls to CopyBits()
  565. and CopyMask() seem to interfere with the proper execution of
  566. InvertRgn() and images of the drag region are left on my graphics
  567. as the drag region leaves the graphic.
  568.  
  569. Is there anyone who can offer suggestions about how to get
  570. around this problem?
  571.  
  572. Brent Taylor <jcaufiel@cln.etc.bc.ca>
  573.  
  574.  
  575. +++++++++++++++++++++++++++
  576.  
  577. >From mgr@aggroup.aggroup.com (Mike Russell)
  578. Date: Tue, 28 Jun 1994 15:59:04 -0800
  579. Organization: the ag group, inc.
  580.  
  581. In article <1994Jun28.143539.25992@news.etc.bc.ca>, jcaufiel@cln.etc.bc.ca
  582. (Jannice Caufield) wrote:
  583.  
  584. > I am attempting to use DragGrayRgn()
  585. ...
  586. > My problem is that it appears as though DragGrayRgn() calls
  587. > InvertRgn() to update the drag region.
  588.  
  589. > Is there anyone who can offer suggestions about how to get
  590. > around this problem?
  591.  
  592. Here's one way to do it.
  593. In your actionproc, XOR out the region before/after you do your graphics.
  594.  
  595.         /* hide the drag outline */
  596.  
  597.         GetPenState(&ps);
  598.         PenMode(notPatXor);
  599.         PenPat(pat_gray);
  600.         FrameRgn(drag_region);
  601.  
  602.   <do your hilighting or whatever>
  603.         
  604.         /* restore the drag region and pen state */
  605.         FrameRgn(drag_region);
  606.   SetPenState(&ps);
  607.  
  608. +++++++++++++++++++++++++++
  609.  
  610. >From Jens Alfke <jens_alfke@powertalk.apple.com>
  611. Date: Wed, 29 Jun 1994 21:59:59 GMT
  612. Organization: Apple Computer
  613.  
  614. Brent Taylor, jcaufiel@cln.etc.bc.ca writes:
  615. > I am attempting to use DragGrayRgn() with an actionProc which
  616. > updates various graphics as the mouse enters their region.
  617. > Specifically, I use CopyBits() and CopyMask() to update the
  618. > graphics.  I am attempting to achieve a result similar to the
  619. > Finder's highlighting of screen icons as other icons are dragged
  620. > across them.
  621.  
  622. Consider using the Drag Manager. It takes care of virtually all of the work
  623. of animating the gray outline, including the tricky bits like updating it
  624. properly after things are drawn over it. And of course you get all kinds of
  625. other benefits as well...
  626. You can get it from ftp.apple.com.
  627.  
  628. --Jens Alfke
  629.   jens_alfke@powertalk              Rebel girl, rebel girl,
  630.             .apple.com              Rebel girl you are the queen of my world
  631.  
  632. ---------------------------
  633.  
  634. >From rosner@aol.com (Rosner)
  635. Subject: Learning TCP
  636. Date: 19 Jun 1994 20:59:03 -0400
  637. Organization: America Online, Inc. (1-800-827-6364)
  638.  
  639. I want to learn how to program tcp applications. I am especially in
  640. need of some books on the subject specific to the macintosh. As far
  641. as I can see there are none on the subject. Does anyone know? Are
  642. there any ftp sites where i can download sample code? And do I need
  643. more libraries and includes to program tcp apps for Think C?
  644. -dave
  645.  
  646. +++++++++++++++++++++++++++
  647.  
  648. >From Mark Hanrek <hanrek@cts.com>
  649. Date: Mon, 20 Jun 1994 05:30:45 GMT
  650. Organization: The Information Workshop
  651.  
  652. In article <2u2pkn$3gt@search01.news.aol.com> Rosner, rosner@aol.com
  653. writes:
  654.  
  655. > I want to learn how to program tcp applications. I am especially in
  656. > need of some books on the subject specific to the macintosh. As far
  657. > as I can see there are none on the subject. Does anyone know? Are
  658. > there any ftp sites where i can download sample code? And do I need
  659. > more libraries and includes to program tcp apps for Think C?
  660.  
  661.  
  662. The way I learned is an excellent way.
  663.  
  664. Grab the HyperCard stacks you find that do TCP related things in the
  665. /comm subsection of sumex and umich archives.
  666.  
  667. There you will find it truly simple to understand what you need to do to
  668. "make things go" with TCP.  In addition, it is in an environment that is
  669. easy to experiment in.
  670.  
  671. Then when you go to utilize it in your C application, you'll know exactly
  672. what to do, and when.
  673.  
  674. I can't imagine a simpler way to learn than this.  If you find a way, I'd
  675. like to know about it.
  676.  
  677.  
  678. Hope this helps.
  679.  
  680. Mark Hanrek
  681.  
  682. +++++++++++++++++++++++++++
  683.  
  684. >From jk@sparc13.cs.uiuc.edu (J Kreibich)
  685. Date: 20 Jun 94 16:02:04 GMT
  686. Organization: University of Illinois at Urbana
  687.  
  688.  
  689. >I want to learn how to program tcp applications. I am especially in
  690. >need of some books on the subject specific to the macintosh. As far
  691. >as I can see there are none on the subject. Does anyone know? 
  692.  
  693.   There are no "books" on how to do IP stuff with a Macintosh besides
  694.   the MacTCP Programmers Guide, which is avaiable via anon ftp from
  695.   seeding.apple.com.  That will teach you how to make the TCP calls to
  696.   MacTCP, but assumes you know quite a bit about networking already.
  697.   Although many will argue, I found the easiest way to learn MacTCP was
  698.   to understand the networking, and then just look in the guide as to
  699.   what calls do what.  To learn more about basic TCP/IP networking, I
  700.   would recoment "Internetworking with TCP/IP, Vol. 1" by Comer.  This
  701.   will teach you more than you need to know about how IP networks work.
  702.   With this basic understanding, the Programmers Guide makes a lot more
  703.   sense (Assuming you already understand Mac device drivers, interrupt
  704.   call-back code, etc, but that is just part of knowing how to program
  705.   a Mac and has little specifically to do with networking).
  706.  
  707. >Are
  708. >there any ftp sites where i can download sample code? And do I need
  709. >more libraries and includes to program tcp apps for Think C?
  710.  
  711.   Since everything is through the device manager, you will not need any
  712.   libs, but there are 4 or 5 includes you can use (also on seeding).
  713.   I got to pissed off at Apple's and made my own, however.
  714.  
  715.  -j
  716.  
  717. --
  718. Jay Kreibich       University of Illinois, U/C      Undergrad Computer Science
  719. - ----------------------------------------------------------------------------
  720.     "You think that I want to be understood..."  -They Might Be Giants
  721. - ----------------------------------------------------------------------------
  722. <a href="http://delphi.beckman.uiuc.edu/people/jay/main.html">My Home Page</a>
  723.  
  724. +++++++++++++++++++++++++++
  725.  
  726. >From andrew@gmvt4.concordia.ca (Andrew Francis)
  727. Date: Mon, 20 Jun 1994 17:59:42 GMT
  728. Organization: Faculty of Commerce, Concordia University
  729.  
  730. In article <jk.772128124@sparc13.cs.uiuc.edu> jk@sparc13.cs.uiuc.edu
  731. (J Kreibich) writes:
  732.  
  733. >>I want to learn how to program tcp applications. I am especially in
  734. >>need of some books on the subject specific to the macintosh. As far
  735. >>as I can see there are none on the subject. Does anyone know? 
  736.  
  737. >  There are no "books" on how to do IP stuff with a Macintosh besides
  738. >  the MacTCP Programmers Guide, which is avaiable via anon ftp from
  739. >  seeding.apple.com.  That will teach you how to make the TCP calls to
  740. >  MacTCP, but assumes you know quite a bit about networking already.
  741. >  Although many will argue, I found the easiest way to learn MacTCP was
  742. >  to understand the networking, and then just look in the guide as to
  743. >  what calls do what.  To learn more about basic TCP/IP networking, I
  744. >  would recoment "Internetworking with TCP/IP, Vol. 1" by Comer.  This
  745. >  will teach you more than you need to know about how IP networks work.
  746. >  With this basic understanding, the Programmers Guide makes a lot more
  747. >  sense (Assuming you already understand Mac device drivers, interrupt
  748. >  call-back code, etc, but that is just part of knowing how to program
  749. >  a Mac and has little specifically to do with networking).
  750.  
  751.    There is an article in I believe Develop 5 by Steven Faulkenburg
  752. called MacTCP Cookbook. It explains how MacTCP works by explaining 
  753. the construction of NewsWatcher. He also included code to make life
  754. easier for novice programmers.
  755.    An excellent book on TCP/IP programming is the Richard Steven's book
  756. "Unix Network Programming."
  757.  
  758. >>Are there any ftp sites where i can download sample code? And do I need
  759. >>more libraries and includes to program tcp apps for Think C?
  760. >
  761. >  Since everything is through the device manager, you will not need any
  762. >  libs, but there are 4 or 5 includes you can use (also on seeding).
  763. >  I got to pissed off at Apple's and made my own, however.
  764.  
  765.    Perhaps you want to look at GUSI ( I believe it is at nic.switch.ch).
  766. It supports the TCP/IP API. Also I believe someone has finally ported a
  767. version over to Think C.
  768.  
  769. --Andrew
  770.  
  771. +++++++++++++++++++++++++++
  772.  
  773. >From sandvik@newton.apple.com (Kent Sandvik)
  774. Date: Mon, 20 Jun 1994 23:51:27 GMT
  775. Organization: Dharma Bums, Inc.
  776.  
  777. > In article <2u2pkn$3gt@search01.news.aol.com> Rosner, rosner@aol.com
  778. > writes:
  779. > > I want to learn how to program tcp applications. I am especially in
  780. > > need of some books on the subject specific to the macintosh. As far
  781. > > as I can see there are none on the subject. Does anyone know? Are
  782. > > there any ftp sites where i can download sample code? And do I need
  783. > > more libraries and includes to program tcp apps for Think C?
  784.  
  785. You could also take a look at existing PD source code, such as 
  786. NewsWatcher and NCSA Telnet to see how the various MacTCP calls
  787. are used. I'm sure sumex-aim and similar places have the sources.
  788. Same with the MacDTS TCP samples, check out ftp.apple.com for 
  789. such ones.
  790.  
  791. Cheers, Kent
  792.  
  793. -- 
  794. Kent Sandvik
  795. sandvik@apple.com. ALink: KSAND -- Private activities on the net.
  796.  
  797. +++++++++++++++++++++++++++
  798.  
  799. >From howardk@cyberstore.ca (Howard Katz)
  800. Date: Mon, 20 Jun 1994 21:34:56 -0800
  801. Organization: Enigmatic Software
  802.  
  803. In article <CrpJBJ.GH4@newsflash.concordia.ca>, andrew@gmvt4.concordia.ca
  804. (Andrew Francis) wrote:
  805.  
  806. >    There is an article in I believe Develop 5 by Steven Faulkenburg
  807. > called MacTCP Cookbook. It explains how MacTCP works by explaining 
  808. > the construction of NewsWatcher. He also included code to make life
  809. > easier for novice programmers.
  810. >    An excellent book on TCP/IP programming is the Richard Steven's book
  811. > "Unix Network Programming."
  812.  
  813. Actually, it's Develop Number 6. We'll give you a cigar anyway.
  814.  
  815. I also recommend Steven's "TCP/IP Illustrated, Volume 1" from
  816. Addison-Wesley.
  817.  
  818. More, much more, than you ever wanted to know.
  819.  
  820. Howard Katz
  821.  
  822. +++++++++++++++++++++++++++
  823.  
  824. >From poorman@convex.com (Peter W. Poorman)
  825. Date: 21 Jun 94 20:36:59 GMT
  826. Organization: CONVEX Computer Corporation, Richardson, TX USA
  827.  
  828. In case in got overlooked for it's obviousness -- you need the MacTCP 
  829. programmer's documentation.  It's FTP-able from seeding.apple.com.
  830.  
  831. -- Pete
  832.    poorman@convex.com
  833.  
  834. +++++++++++++++++++++++++++
  835.  
  836. >From jf1@stirling.ac.uk (Mr Jonathon Fletcher)
  837. Date: 24 Jun 1994 15:05:25 GMT
  838. Organization: University of Stirling
  839.  
  840. Peter W. Poorman (poorman@convex.com) wrote:
  841. : In case in got overlooked for it's obviousness -- you need the MacTCP 
  842. : programmer's documentation.  It's FTP-able from seeding.apple.com.
  843.  
  844. Can anyone help me with this - the link from seeding is so slow that I
  845. get timed out after about 40K (of a 717K ascii file). Is there anywhere
  846. else I can get the documentation, or can anyone send it to me ?
  847.  
  848. The files I'm after are:
  849. seeding.apple.com
  850. /ess/public/mactcp/MacTCP_Dev_Kit/MacTCP_Prog_Guide.hqx
  851. /ess/public/mactcp/MacTCP_Dev_Kit/MacTCP_Prog_Guide.idx.hqx
  852.  
  853. Sincerely,
  854.  
  855. -Jon
  856.  
  857. --
  858.   Jonathon Fletcher, Information Services, Stirling University. 
  859.   j.fletcher@stirling.ac.uk (X400: "/S=jf1/O=stirling/PRMD=uk.ac/C=gb/")
  860.  
  861.  
  862. +++++++++++++++++++++++++++
  863.  
  864. >From tzs@u.washington.edu (Tim Smith)
  865. Date: 30 Jun 1994 00:07:42 GMT
  866. Organization: University of Washington School of Law, Class of '95
  867.  
  868. Mr Jonathon Fletcher <jf1@stirling.ac.uk> wrote:
  869. >Can anyone help me with this - the link from seeding is so slow that I
  870. >get timed out after about 40K (of a 717K ascii file). Is there anywhere
  871. >else I can get the documentation, or can anyone send it to me ?
  872. >
  873. >The files I'm after are:
  874. >seeding.apple.com
  875. >/ess/public/mactcp/MacTCP_Dev_Kit/MacTCP_Prog_Guide.hqx
  876. >/ess/public/mactcp/MacTCP_Dev_Kit/MacTCP_Prog_Guide.idx.hqx
  877.  
  878. I just grabbed them with no problem, and then downloaded them to my
  879. Mac.  Normally, I'd now delete them from my account here, but I'll
  880. keep 'em around for a couple days.  Try ftp'ing them from here--maybe
  881. the link will be faster.  They are in public/tzs on ftp.u.washington.edu.
  882.  
  883. --Tim Smith
  884.  
  885. ---------------------------
  886.  
  887. >From jbeeghly@u.washington.edu (Jeff Beeghly)
  888. Subject: Modal Dialog Filter & Delete key
  889. Date: 30 Jun 1994 07:12:06 GMT
  890. Organization: University of Washington
  891.  
  892.  
  893. DISCLAIMER:  I have been programming in 'C' for several years, but I am 
  894. new to Mac programming (although I do know how to program Windows & GEM).
  895. ALSO, I would like code not specific to sys 7 (ege.  must be able to run 
  896. under sys 6.5 as well).
  897.  
  898. In a text field within a modal dialog box, let's say I have the string, 
  899. "1234567".  If I move the cursor between the '4' and the '5' characters, 
  900. then press the DELETE key (which is actually the BACKSPACE key), the text 
  901. string becomes "123567".
  902.  
  903. If I had pressed the DEL key (located just below the HELP key on my extended 
  904. apple keyboard) instead, I would expect to get "123467"... hence, removing 
  905. the '5' character and shifting everything over to the right by one.
  906.  
  907. In actuallity, I get "1234 567", which seems very strange, but when I 
  908. tried this with several comercial apps out there, the same behaviour occured.
  909.  
  910. So I was wondering.... what would be the easiest way to achieve what I 
  911. want with a dialog filter?
  912.  
  913. Right now I have something like....
  914.  
  915. pascal Boolean DLOGFilter(theDialog, e, iPtr)
  916. DialogPtr    theDialog;
  917. EventRecord    *e;
  918. short        *iPtr;
  919. {
  920.     short    itemType;
  921.     Rect    itemRect;
  922.     Handle    item;
  923.     Str255    tempStr;
  924.     char    theChar;
  925.  
  926.  
  927.     if(e->what == keyDown || e->what == autoKey)
  928.     {
  929.         theChar = (e->message & charCodeMask);
  930.         if(theChar == kDeleteKey) //kDeleteKey = 127
  931.         {
  932.             GetDItem(theDialog, TEXT_ITEM, &itemType, &item,
  933.                 &itemRect);
  934.             GetIText(item, tempStr);
  935.             //put in routine here
  936.             return( TRUE );
  937.         }
  938.     }
  939. }
  940.  
  941.  
  942. the routine could do something like this:
  943.  
  944. 1) Find the location of the cursor.
  945. 2) move every character from that location to the end of the string over 
  946. by one.
  947.  
  948. for(i=start; i<tempStr[0]; i++)
  949. {
  950.     tempStr[i] = tempStr[i + 1];
  951. }
  952. tempStr[0]--;
  953.  
  954.  
  955. I would like to know:
  956.  
  957. 1) Is this the propper way to do this?
  958. 2) How do I determine where the cursor (or the begining of the selected 
  959. text) is at?
  960.  
  961. +++++++++++++++++++++++++++
  962.  
  963. >From aep@world.std.com (Andrew E Page)
  964. Date: Thu, 30 Jun 1994 13:35:24 GMT
  965. Organization: The World Public Access UNIX, Brookline, MA
  966.  
  967.  
  968.    I think that the first question that I'd like to ask is why
  969. you need to do the editing yourself instead of letting ModalDialog's
  970. default action do it for you?  If you return FALSE after your keyDown
  971. event ModalDialog continues to process the event and delete the
  972. character for you.  
  973.  
  974.    If you insist on editing the field yourself be aware that the
  975. Dialog manger maintains a single TERec for all the edit field in
  976. a dialog, and stores it in a field accessible by casing the DialogPtr
  977. as a DialogPeek.
  978.  
  979. -- 
  980. Andrew E. Page   (Warrior Poet) |   Decision and Effort The Archer and Arrow
  981. Mac Consultant                  |     The difference between what we are
  982. Macintosh and DSP Technology    |           and what we want to be.
  983.  
  984. +++++++++++++++++++++++++++
  985.  
  986. >From dubois@primate.wisc.edu (Paul DuBois)
  987. Date: 30 Jun 1994 13:48:37 -0500
  988. Organization: Castra Parvulorum
  989.  
  990. >From article <Cs7pr1.6En@world.std.com>, by aep@world.std.com (Andrew E Page):
  991. >    I think that the first question that I'd like to ask is why
  992. > you need to do the editing yourself instead of letting ModalDialog's
  993. > default action do it for you?  If you return FALSE after your keyDown
  994. > event ModalDialog continues to process the event and delete the
  995. > character for you.  
  996.  
  997. Read the original message again.  He got the undesired behavior by
  998. letting let the toolbox process the DEL key (different than the DELETE
  999. key).  I.e., the default action he got is not what he wants.
  1000. -- 
  1001. Paul DuBois
  1002. dubois@primate.wisc.edu
  1003.  
  1004. +++++++++++++++++++++++++++
  1005.  
  1006. >From Jens Alfke <jens_alfke@powertalk.apple.com>
  1007. Date: Thu, 30 Jun 1994 23:58:35 GMT
  1008. Organization: Apple Computer
  1009.  
  1010. Jeff Beeghly, jbeeghly@u.washington.edu writes:
  1011. > So I was wondering.... what would be the easiest way to achieve what I 
  1012. > want with a dialog filter?
  1013.  
  1014. Don't mess with the text directly; let TextEdit do it for you:
  1015.  
  1016. if selStart != selEnd
  1017.     TEKey(kDeleteKey);  // 0x08
  1018. else if( selEnd == teLength-1 )
  1019.     SysBeep(3);  // End of text
  1020. else
  1021.     TEKey(kRightArrowKey);
  1022.     TEKey(kDeleteKey);
  1023. end if
  1024.  
  1025. There's also a freeware extension that patches TextEdit to support the
  1026. forward-delete key. I think it's just called "Forward Delete".
  1027.  
  1028. --Jens Alfke
  1029.   jens_alfke@powertalk              Rebel girl, rebel girl,
  1030.             .apple.com              Rebel girl you are the queen of my world
  1031.  
  1032. +++++++++++++++++++++++++++
  1033.  
  1034. >From bb@lightside.com (Bob Bradley)
  1035. Date: Thu, 30 Jun 1994 09:50:42 -0800
  1036. Organization: Lightside, Inc.
  1037.  
  1038. I think the original poster is trying to implement the forward-delete key
  1039. which I don't think ModalDialog handles normally.
  1040.  
  1041. In your ModalDialog Filter, when you detect the forward-delete key being
  1042. pressed, get the textH field of the DialogRecord (textH is a handle to the
  1043. TextEdit record used for the dialog). then you can use the selStart and
  1044. selEnd fields of the TERec to determine what it selected or where the
  1045. insertion point is (ie if selStart == selEnd, nothing is selection and you
  1046. have the insertion point). The text is stored i the hText field of the
  1047. TERec so you can use that modify the actual text.
  1048.  
  1049. You may want to use the Script Manager cause you may be working with a
  1050. non-Roman script where the text may go right to left or characters may be
  1051. larger than one byte.
  1052.  
  1053. ---------------------------
  1054.  
  1055. >From mhteas@aol.com (Mhteas)
  1056. Subject: OLE on the Macintosh
  1057. Date: 23 Jun 1994 21:19:05 -0400
  1058. Organization: America Online, Inc. (1-800-827-6364)
  1059.  
  1060. Help!  I'm a Mac veteran trying to use OLE on the Macintosh.  I'm
  1061. currently hampered both by the lack of solid documentation and by the
  1062. provided sample code which is less than clear.  I do need to use OLE,
  1063. this is non-negotiable with my client.  So...
  1064.  
  1065. Is there anyone who's implemented OLE linking on the Macintosh that
  1066. can provide advice?
  1067.  
  1068. I've tried emailing, and leaving messages for Microsoft support and
  1069. evangelism people and leaving messages on their WINOBJ forum on
  1070. Compu$erve all with little result
  1071.  
  1072. If you can assist with advice, working sample code, or the voice of
  1073. experience, I can be reached at the email address below.
  1074.  
  1075. Many thanks,
  1076.  
  1077. Malcolm Teas
  1078. Teas Technology
  1079. mhteas@aol.com
  1080.  
  1081. +++++++++++++++++++++++++++
  1082.  
  1083. >From d88-jwa@dront.nada.kth.se (Jon Wätte)
  1084. Date: 24 Jun 1994 08:53:58 GMT
  1085. Organization: The Royal Institute of Technology
  1086.  
  1087. In <2udca9$odt@search01.news.aol.com> mhteas@aol.com (Mhteas) writes:
  1088.  
  1089. >Is there anyone who's implemented OLE linking on the Macintosh that
  1090. >can provide advice?
  1091.  
  1092. No.
  1093.  
  1094. Basically, OLE sucks. OpenDoc will be out Any Year Now and has a much
  1095. clearer and better usage model and content model. If you support OpenDoc,
  1096. Apple will provide interchangeability with OLE 2.
  1097.  
  1098. Some reasons why OpenDoc is cooler than OLE 2:
  1099.  
  1100. - OpenDoc does click-and-type however deep you want.
  1101.   OLE has you to click three times to get at a text item in a chart
  1102.   in a text item.
  1103.  
  1104. - OpenDoc is backed by several large industry vendors, and has freely
  1105.   available source code as an OPEN standard.
  1106.   OLE is backed/kept by MS, and you can't get source.
  1107.  
  1108. - OpenDoc builds on the Bento storage format.
  1109.   OLE doesn't (and doesn't even have anything similar)
  1110.  
  1111. - OpenDoc lets you have non-rectangular part frames.
  1112.   OLE doesn't.
  1113.  
  1114. - OpenDoc lets you partly overlay part frames a la overlapping windows
  1115.   and also have transparent parts.
  1116.   OLE doesn't.
  1117.  
  1118. I could be wrong on one of these, but I don't think so.
  1119. Basically, OLE is, as anything operating-system-like MS does,
  1120. substandard and a crock. (Well, NT might actually be a good
  1121. server platform, but apart from that)
  1122.  
  1123. Cheers,
  1124.  
  1125.  
  1126.                     / h+
  1127. -- 
  1128.  -- Jon W{tte, h+@nada.kth.se, Mac Software Engineer Deluxe --
  1129.  
  1130.    What we need is a good GNU [...] licence manager implementation.
  1131.                      -- Raphael Manfredi
  1132.  
  1133. +++++++++++++++++++++++++++
  1134.  
  1135. >From Aaron Bratcher <aaron_bratcher@fpm.uchicago.edu>
  1136. Date: Fri, 24 Jun 1994 18:22:46 GMT
  1137. Organization: University of Chicago
  1138.  
  1139. In article <2ue6v6$fs3@news.kth.se> Jon W!tte, d88-jwa@dront.nada.kth.se writes:
  1140. >Basically, OLE sucks. OpenDoc will be out Any Year Now and has a much
  1141. >clearer and better usage model and content model. If you support OpenDoc,
  1142. >Apple will provide interchangeability with OLE 2.
  1143.  
  1144. Something I just read in "Client/Server Today" in the June 94 issue on page 84:
  1145.  
  1146.      If the Apple/IBM/WordPerfect/Novell/et al. OpenDoc spec wins the day, then you will see truly cross-platform, plug-and-play componentware sprouting up all over the place. But if Microsoft's OLE wins instead, then all you will ever have is MS Office left to buy, with some ISV stragglers
  1147. feeding off the crumbs from Big Bill's groaning board.
  1148.      Please, forget all the Microsoft OLE marketing hype; surely you are aware that "Open" Microsoft just tried to force software developers to sign a non-disclosure agreement that said if they developed for OLE, they were forbidden from developing for OpenDoc. (Note: It just backed down from this
  1149. silliness.)
  1150.      Bear in mind, Microsoft is facing possible Federal Trace Commission anti-trust action. If it dares to pull this type of stunt under these circumstances, do you think Microsoft will give up control of both the desktop OS and the applications willingly?
  1151.  
  1152. /* endquote */
  1153.  
  1154. I'm sorry, but that makes me want to toss all the Microsoft products I have (I only have 1 product of theirs I use and I regret it) and do my best to make things that will directly compete against them using the OpenDoc spec.
  1155.  
  1156. - ------------------------------------------------------------------------
  1157.      MegaWatt                         |    _____  _____  _____   _   _ 
  1158.                                       |   |__  / | ___ || ___ \ | | | |
  1159. AKA  Aaron L. Bratcher                |     / /  | |_| || |_/ / | | | |
  1160.      University of Chicago            |    / /__ | ___ ||  __/  |_| |_|
  1161.      aaron_bratcher@fpm.uchicago.edu  |   |_____||_| |_||_|     (_) (_)
  1162. - ------------------------------------------------------------------------
  1163.  
  1164. +++++++++++++++++++++++++++
  1165.  
  1166. >From Jens Alfke <jens_alfke@powertalk.apple.com>
  1167. Date: Fri, 24 Jun 1994 18:53:56 GMT
  1168. Organization: Apple Computer
  1169.  
  1170. Jon W!tte, d88-jwa@dront.nada.kth.se writes:
  1171. <lots of nice things about OpenDoc and savage things about OLE>
  1172.  
  1173. Thanks, Jon! Couldn't have said it better myself. That 8100AV will be in the
  1174. mail to you shortly.
  1175.  
  1176. Incidentally, if anyone would like more info about OpenDoc, there are white
  1177. papers and such available by anon ftp from cil.org.
  1178.  
  1179. --Jens Alfke
  1180.   jens_alfke@powertalk              Rebel girl, rebel girl,
  1181.             .apple.com              Rebel girl you are the queen of my world
  1182.  
  1183. +++++++++++++++++++++++++++
  1184.  
  1185. >From ejohnson@netcom.com (Eric Johnson)
  1186. Date: Fri, 24 Jun 1994 20:26:48 GMT
  1187. Organization: NETCOM On-line Communication Services (408 261-4700 guest)
  1188.  
  1189. d88-jwa@dront.nada.kth.se (Jon Wätte) writes:
  1190.  
  1191. >- OpenDoc builds on the Bento storage format.
  1192. >  OLE doesn't (and doesn't even have anything similar)
  1193.  
  1194. I believe this is false.  OLE does have something similar, its known
  1195. as the structured storage model.  It allows one to store files within
  1196. a file.
  1197.  
  1198. -Eric
  1199. -- 
  1200. Eric E Johnson                    ejohnson@netcom.netcom.com
  1201. "I need a kill file for TV" - Jim Browne while watching COPS
  1202.  
  1203. +++++++++++++++++++++++++++
  1204.  
  1205. >From howard@netcom.com (Howard Berkey)
  1206. Date: Sat, 25 Jun 1994 05:43:25 GMT
  1207. Organization: Netcom Online Communications Services (408-241-9760 login: guest)
  1208.  
  1209. In article <1994Jun24.185356.19583@gallant.apple.com> Jens Alfke <jens_alfke@powertalk.apple.com> writes:
  1210. >Jon W!tte, d88-jwa@dront.nada.kth.se writes:
  1211. ><lots of nice things about OpenDoc and savage things about OLE>
  1212. >
  1213. >Thanks, Jon! Couldn't have said it better myself. That 8100AV will be in the
  1214. >mail to you shortly.
  1215. >
  1216.  
  1217. Careful!  The way I've heard Swedish ad laws explained, you're obliged
  1218. to give him one now :-) :-)
  1219.  
  1220. >Incidentally, if anyone would like more info about OpenDoc, there are white
  1221. >papers and such available by anon ftp from cil.org.
  1222. >
  1223.  
  1224. Thanks!
  1225.  
  1226. -H-
  1227.  
  1228.  
  1229. >--Jens Alfke
  1230. >  jens_alfke@powertalk              Rebel girl, rebel girl,
  1231. >            .apple.com              Rebel girl you are the queen of my world
  1232.  
  1233.  
  1234. -- 
  1235. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  1236. Howard Berkey                                             howard@netcom.com   
  1237.                   Eat at C-Ko's
  1238. ...........................................................................
  1239.  
  1240. +++++++++++++++++++++++++++
  1241.  
  1242. >From mhteas@aol.com (Mhteas)
  1243. Date: 25 Jun 1994 09:50:14 -0400
  1244. Organization: America Online, Inc. (1-800-827-6364)
  1245.  
  1246. In article <2ue6v6$fs3@news.kth.se>, d88-jwa@dront.nada.kth.se (Jon
  1247. Wtte) writes:
  1248.  
  1249. >Basically, OLE sucks. OpenDoc will be out Any Year Now and has a
  1250. much
  1251. >clearer and better usage model and content model.
  1252.  
  1253. After trying to use OLE, I whole-heartedly agree with the Jon's
  1254. statement.  I avoid using MS products when I can.  MS is a good
  1255. demonstration that marketing ability and quality technology are
  1256. completely different things.  Working around Windows programmers is a
  1257. good way to learn new curse words.  (So Jen, when do I expect *my*
  1258. PowerMac? :)
  1259.  
  1260. However, as much as I would prefer to use OpenDoc (don't you think I
  1261. suggested it?), I'm working on contract.  The client spec'ed OLE for
  1262. proprientary reasons of their own.  As I specifically mentioned in my
  1263. earlier request, "I do need to use OLE, this is non-negotiable with
  1264. my client."
  1265.  
  1266. Just asking for info, don't jump on me :)
  1267.  
  1268. Thanks anyhow,
  1269.  
  1270. Malcolm H. Teas                   Software by contract for 
  1271. Teas Technology                   the Macintosh and Newton
  1272. mhteas@aol.com
  1273. Voice/fax: (603) 427-0231 (USA)
  1274.  
  1275. +++++++++++++++++++++++++++
  1276.  
  1277. >From rob@eats.com (Rob Newberry)
  1278. Date: Sat, 25 Jun 1994 22:23:34 UNDEFINED
  1279. Organization: Education and Technology Solutions
  1280.  
  1281. >Basically, OLE sucks. OpenDoc will be out Any Year Now and has a much
  1282. >clearer and better usage model and content model. If you support OpenDoc,
  1283. >Apple will provide interchangeability with OLE 2.
  1284.  
  1285. Ok, Jon...OLE may not be all OpenDoc is, BUT...
  1286.  
  1287. OLE is here now.  OpenDoc is not.  And it may not be for a while.  And once it 
  1288. is, I doubt there will be as much help in learning it as there is for learning 
  1289. OLE -- everyone and their dog is starting to use OLE under Windows, and there 
  1290. are already several great texts on using it.  Where is the same for OpenDoc?  
  1291. Nowhere.
  1292.  
  1293. I see no need to defend Microsoft -- in fact, I'd just as soon jump in on the 
  1294. attack.  But OLE is perhaps the best thing Microsoft ever did, and is 
  1295. probably the most innovative technology they've ever come up with.  Everywhere 
  1296. else, Windows is a copy of other ideas.  But with OLE, Microsoft is actually 
  1297. leading most of the game (yes, I'm aware that they didn't completely come up 
  1298. with OLE from scratch, but hell, very few companies ever completely invent 
  1299. something like component computing -- Microsoft's technique is simply a good 
  1300. starting point, and a truly good effort for as young as the technology is).
  1301.  
  1302. Sure, if all you want to do is Mac development, you can wait for OpenDoc.  It 
  1303. will be better than OLE.  But then again, Apple and friends can draw from 
  1304. Microsoft's mistakes.  On the other hand, Microsoft will continue to improve 
  1305. OLE.  And there will probably always be more support and documentation for 
  1306. learning OLE.
  1307.  
  1308. One last note.  While Bento is a wonderful thing, OLE does have the compound 
  1309. file system, which is very nice.  Bento may let you do a whole lot more, but 
  1310. compound files do almost everything I can think of that I need to do compound 
  1311. documents.
  1312.  
  1313. I'd love to see OpenDoc do very well for Apple.  But OLE is here now.  And 
  1314. there's lots of information about how to use it.
  1315.  
  1316. (And while I'm still upon this soapbox, the guy said he had to use OLE because 
  1317. it was in a contract.  Why would you tell him, "don't do it" ?  Did you want 
  1318. to see him fired?  For heaven's sake, at least tell him, "I'm sorry you have 
  1319. to do that, but here's the best info I can give you."  And why shouldn't 
  1320. anyone learn OLE?  Why should a programmer avoid learning any technology?  Go 
  1321. ahead, if you can, learn OLE.  It'll only make you a better programmer (even 
  1322. if it's just because you see lots of design flaws :-), and a lot more 
  1323. marketable as a professional.  Hell, learn as much as you can.  Don't be 
  1324. scared to dig in, just because something easier may come along.  Sheesh.)
  1325.  
  1326. Rob
  1327.  
  1328.  
  1329. *******************************************************************
  1330. Rob Newberry               Education and Technology Solutions, Inc.
  1331. Email: rob@eats.com        4303 Parkland Court
  1332. Phone: 301 438 3915        Rockville, Maryland 20853            
  1333. FAX: 301 438 3748
  1334.  
  1335.               "He who laughs first didn't get the joke."
  1336.             -- Paul Westerberg
  1337. *******************************************************************
  1338.  
  1339. +++++++++++++++++++++++++++
  1340.  
  1341. >From d88-jwa@dront.nada.kth.se (Jon Wätte)
  1342. Date: 26 Jun 1994 13:24:01 GMT
  1343. Organization: The Royal Institute of Technology
  1344.  
  1345. >>Thanks, Jon! Couldn't have said it better myself. That 8100AV will be in the
  1346. >>mail to you shortly.
  1347.  
  1348. >Careful!  The way I've heard Swedish ad laws explained, you're obliged
  1349. >to give him one now :-) :-)
  1350.  
  1351. Indeed, else we mount an Air Force expedition and come get him to
  1352. have him stand trial here. Or something.
  1353.  
  1354. Cheers,
  1355.  
  1356.                     / h+
  1357. -- 
  1358.  -- Jon W{tte, h+@nada.kth.se, Mac Software Engineer Deluxe --
  1359.   "And now, from the makers of EDLIN, comes: Windows NT!"
  1360.  
  1361. +++++++++++++++++++++++++++
  1362.  
  1363. >From d88-jwa@dront.nada.kth.se (Jon Wätte)
  1364. Date: 26 Jun 1994 13:31:19 GMT
  1365. Organization: The Royal Institute of Technology
  1366.  
  1367. In <rob.200.0745C41D@eats.com> rob@eats.com (Rob Newberry) writes:
  1368.  
  1369. >OLE is here now.  OpenDoc is not.  And it may not be for a while.  And once it 
  1370. Huh? Well, these CDs I have must be figments of my imagination then.
  1371.  
  1372. >is, I doubt there will be as much help in learning it as there is for learning 
  1373. And Apple didn't actually hold free kitchens for learning OpenDoc;
  1374. they just drug people and hypnotize them to think they do. (Before
  1375. everyone wants one: you have to be an active developer who shows
  1376. interest at adopting new technologies. Tals to your evangelist. And
  1377. travel & lodging is on you)
  1378.  
  1379. >Sure, if all you want to do is Mac development, you can wait for OpenDoc.  It 
  1380.  
  1381. With a half-year lead-time for product development, chances are that
  1382. OpenDoc is on the market when your component gets out.
  1383.  
  1384. >file system, which is very nice.  Bento may let you do a whole lot more, but 
  1385. >compound files do almost everything I can think of that I need to do compound 
  1386. >documents.
  1387.  
  1388. Bento actively encourages you to let different objects access each
  1389. OTHERs data, even without using Semantic Events (like scripting)
  1390. Bento also has drafts of the Bento file.
  1391.  
  1392. >it was in a contract.  Why would you tell him, "don't do it" ?  Did you want 
  1393. >to see him fired?  For heaven's sake, at least tell him, "I'm sorry you have 
  1394.  
  1395. Oh, no, I said OpenDoc will cross-support OLE, so if his deadline is
  1396. suffucuently far from now, he could go OpenDoc. Myself, I'm picky about
  1397. customers these days. After all, he's paying me to enlighten him about
  1398. stuff I know more about than him, and if he won't take it without really
  1399. good reasons, well, I suggest he uses someone cheaper and more gullible.
  1400.  
  1401. >marketable as a professional.  Hell, learn as much as you can.  Don't be 
  1402. >scared to dig in, just because something easier may come along.  Sheesh.)
  1403.  
  1404. I had the OLE 2 for Mac seed, but it scared me away.
  1405.  
  1406. Cheers,
  1407.  
  1408.                     / h+
  1409. -- 
  1410.  -- Jon W{tte, h+@nada.kth.se, Mac Software Engineer Deluxe --
  1411.   "And now, from the makers of EDLIN, comes: Windows NT!"
  1412.  
  1413. +++++++++++++++++++++++++++
  1414.  
  1415. >From isis@netcom.com (Mike Cohen)
  1416. Date: Sun, 26 Jun 1994 21:21:07 GMT
  1417. Organization: ISIS International
  1418.  
  1419. d88-jwa@dront.nada.kth.se (Jon Wätte) writes:
  1420.  
  1421. >I had the OLE 2 for Mac seed, but it scared me away.
  1422.  
  1423. I also got it & was very disgusted by it. After looking at it a few times, I
  1424. decided not to bother.
  1425. -- 
  1426. Mike Cohen - isis@netcom.com
  1427. NewtonMail, eWorld: MikeC / ALink: D6734 / AOL: MikeC20
  1428. Home Page: file://ftp.netcom.com/pub/isis/home.html
  1429.  
  1430. +++++++++++++++++++++++++++
  1431.  
  1432. >From Aaron Bratcher <aaron_bratcher@fpm.uchicago.edu>
  1433. Date: Mon, 27 Jun 1994 12:01:56 GMT
  1434. Organization: University of Chicago
  1435.  
  1436. In article <rob.200.0745C41D@eats.com> Rob Newberry, rob@eats.com writes:
  1437. >Sure, if all you want to do is Mac development, you can wait for OpenDoc...
  1438.  
  1439. Isn't that kinda like not supporting AppleEvents because it's not on Windows? One good turn deseres another  :P
  1440.  
  1441. Seriously... I think that waiting for OpenDoc will be well worth it. OLE is here now, but I personally would rather not give Microsoft any more money.
  1442.  
  1443. - ------------------------------------------------------------------------
  1444.      MegaWatt                         |    _____  _____  _____   _   _ 
  1445.                                       |   |__  / | ___ || ___ \ | | | |
  1446. AKA  Aaron L. Bratcher                |     / /  | |_| || |_/ / | | | |
  1447.      University of Chicago            |    / /__ | ___ ||  __/  |_| |_|
  1448.      aaron_bratcher@fpm.uchicago.edu  |   |_____||_| |_||_|     (_) (_)
  1449. - ------------------------------------------------------------------------
  1450.  
  1451. +++++++++++++++++++++++++++
  1452.  
  1453. >From Jens Alfke <jens_alfke@powertalk.apple.com>
  1454. Date: Tue, 28 Jun 1994 00:53:53 GMT
  1455. Organization: Apple Computer
  1456.  
  1457. Rob Newberry, rob@eats.com writes:
  1458. > Sure, if all you want to do is Mac development, you can wait for OpenDoc.
  1459.  
  1460. Remember that OpenDoc is being developed for many platforms, not just the
  1461. Mac. Alpha seeds for Windows and OS/2 are now available from WordPerfect and
  1462. IBM respectively, and Unix (AIX and others) ports shouldn't be far behind.
  1463. The OpenDoc Parts Framework will also support Mac/Windows cross-platform part
  1464. development.
  1465.   All this I think makes OpenDoc pretty compelling to people considering
  1466. cross platform development. (How soon before we see OLE for Unix? Or for
  1467. native OS/2 apps?)
  1468.  
  1469. --Jens Alfke
  1470.   jens_alfke@powertalk              Rebel girl, rebel girl,
  1471.             .apple.com              Rebel girl you are the queen of my world
  1472.  
  1473. +++++++++++++++++++++++++++
  1474.  
  1475. >From Neil Ticktin <publisher@xplain.com>
  1476. Date: Tue, 28 Jun 1994 03:28:13 GMT
  1477. Organization: MacTech Magazine/Xplain Corp.
  1478.  
  1479. In article <2udca9$odt@search01.news.aol.com> Mhteas, mhteas@aol.com
  1480. writes:
  1481. >Is there anyone who's implemented OLE linking on the Macintosh that
  1482. >can provide advice?
  1483.  
  1484. Malcolm,
  1485.  
  1486. Long time -- no talk.
  1487.  
  1488. FYI:  The August issue of MacTech Magazine will have the OLE 2.0 SDK CD
  1489. *bound into* the magazine.  There's some sample articles on using OLE and
  1490. another article on OpenDoc vs. OLE.  I believe that the "SimpleServer"
  1491. article which was written by Microsoft to show off OLE might help you --
  1492. but I'd have to double check to make sure.
  1493.  
  1494. This issue will be available at the MacTech Magazine booth at Macworld in
  1495. World Trade Center.  If you are a subscriber, it will show up on your
  1496. door step automatically.  If not, come by and see us to get a copy.
  1497.  
  1498. Hope it helps,
  1499.  
  1500. Neil Ticktin
  1501. MacTech Magazine
  1502. - ---------------------------------------------------------------------
  1503.            Neil Ticktin, MacTech Magazine (formerly MacTutor)
  1504. PO Box 250055, Los Angeles, CA 90025 * 310-575-4343 * Fax: 310-575-0925
  1505.  For more info, anonymous ftp to ftp.netcom.com and cd to /pub/xplain
  1506.   custservice@xplain.com * editorial@xplain.com * adsales@xplain.com
  1507. marketing@xplain.com * accounting@xplain.com * pressreleases@xplain.com
  1508.    progchallenge@xplain.com * publisher@xplain.com * info@xplain.com
  1509.  
  1510. +++++++++++++++++++++++++++
  1511.  
  1512. >From jonpugh@netcom.com (Jon Pugh)
  1513. Date: Thu, 30 Jun 1994 00:49:58 GMT
  1514. Organization: NETCOM On-line Communication Services (408 261-4700 guest)
  1515.  
  1516. Jon Wätte (d88-jwa@dront.nada.kth.se) wrote:
  1517. > >>Thanks, Jon! Couldn't have said it better myself. That 8100AV will be in the
  1518. > >>mail to you shortly.
  1519.  
  1520. > >Careful!  The way I've heard Swedish ad laws explained, you're obliged
  1521. > >to give him one now :-) :-)
  1522.  
  1523. > Indeed, else we mount an Air Force expedition and come get him to
  1524. > have him stand trial here. Or something.
  1525.  
  1526. I thought you guys were neutral and all your army does is make pocket knives.
  1527.  
  1528. ;)
  1529.  
  1530. Jon
  1531.  
  1532. +++++++++++++++++++++++++++
  1533.  
  1534. >From quinn@cs.uwa.edu.au (Quinn "The Eskimo!")
  1535. Date: Fri, 01 Jul 1994 10:58:35 +0800
  1536. Organization: Department of Computer Science, The University of Western Australia
  1537.  
  1538. In article <jonpughCs6qBA.B0G@netcom.com>, jonpugh@netcom.com (Jon Pugh) wrote:
  1539.  
  1540. >Jon Wätte (d88-jwa@dront.nada.kth.se) wrote:
  1541. >> >>Thanks, Jon! [...]
  1542. >
  1543. >I thought you guys were neutral and all your army does is make pocket knives.
  1544.  
  1545. Yeah, the Swedish Army Knife, a marvellous piece of badge engineering,
  1546. perfect for those of us who prefer gold-on-blue to the more garish
  1547. white-on-red.
  1548. -- 
  1549. Quinn "The Eskimo!"      <quinn@cs.uwa.edu.au>     "Support HAVOC!"
  1550. Department of Computer Science, The University of Western Australia
  1551.  
  1552. +++++++++++++++++++++++++++
  1553.  
  1554. >From Dan_Menchaca@quickmail.apple.com (Dan)
  1555. Date: Fri, 01 Jul 1994 18:47:45 -0700
  1556. Organization: Apple
  1557.  
  1558.  
  1559. > However, as much as I would prefer to use OpenDoc (don't you think I
  1560. > suggested it?), I'm working on contract.  The client spec'ed OLE for
  1561. > proprientary reasons of their own.  As I specifically mentioned in my
  1562. > earlier request, "I do need to use OLE, this is non-negotiable with
  1563. > my client."
  1564. So what's the problem.  OpenDoc will support OLE.  So, you can have OpenDoc
  1565. modules and still have OLE too.  So, go out and use OpenDoc as the
  1566. container object of choice.
  1567.  
  1568. +++++++++++++++++++++++++++
  1569.  
  1570. >From rickard@softlab.se (Rickard Andersson)
  1571. Date: 30 Jun 1994 17:01:38 +0200
  1572. Organization: SoftLab ab
  1573.  
  1574. jonpugh@netcom.com (Jon Pugh) writes:
  1575. >Jon Wätte (d88-jwa@dront.nada.kth.se) wrote:
  1576. >> >>Thanks, Jon! Couldn't have said it better myself. That 8100AV will be in the
  1577. >> >>mail to you shortly.
  1578.  
  1579. >> >Careful!  The way I've heard Swedish ad laws explained, you're obliged
  1580. >> >to give him one now :-) :-)
  1581.  
  1582. >> Indeed, else we mount an Air Force expedition and come get him to
  1583. >> have him stand trial here. Or something.
  1584.  
  1585. >I thought you guys were neutral and all your army does is make pocket knives.
  1586.  
  1587. >;)
  1588.  
  1589. >Jon
  1590.  
  1591. We aren't more neutral than anybody else :-)
  1592. And we buy our pocket knives from Switzerland :-)
  1593.  
  1594.  
  1595. | Rickard Andersson       rickard@softlab.se |     be in harmony     
  1596. +--------------------------------------------+ with the eye of viewer
  1597. | A swede programming Macintosh shareware... |   that is the answer  
  1598. +--------------------------------------------+         /RAN          
  1599.  
  1600. ---------------------------
  1601.  
  1602. >From oster@netcom.com (David Phillip Oster)
  1603. Subject: Omission in Universal Headers: TrackControl()
  1604. Date: Thu, 30 Jun 1994 15:16:48 GMT
  1605. Organization: Netcom Online Communications Services (408-241-9760 login: guest)
  1606.  
  1607. I am still using Apple's Universal Headers that came with THINK C 7,
  1608. and I want to know if a missing piece in them has been fixed.
  1609.  
  1610. Oddly enough, the missing piece is with the system call TrackControl().
  1611. It is odd, because TrackControl() is the system call that
  1612. InsideMac:PowerPC uses as an example of calling a system call with
  1613. niversal procedure pointers.
  1614.  
  1615. The problem is that that InsideMac:Toolbox Essentials says that
  1616. TrackControl() can be called two ways:
  1617.  
  1618. 1.) with a callback which will be called during a sustained mousedown
  1619. in a control part like a scroll-bar arrow. This callback will be called
  1620. with the ControlHandle and part code as its two arguments.
  1621.  
  1622. 2) with a callback which will be called during a sustained mousedown
  1623. and drag on a control part like a scroll-bar thumb. This callback will
  1624. be called with no arguments.
  1625.  
  1626. Type one is handled by ControlActionProcPtr which is defined in the
  1627. Universal Header's Controls.h file.
  1628.  
  1629. Type two is not handled. There should be a
  1630. ControlIndicatorActionProcPtr and there isn't.
  1631.  
  1632. +++++++++++++++++++++++++++
  1633.  
  1634. >From wdh@netcom.com (Bill Hofmann)
  1635. Date: Thu, 30 Jun 1994 15:50:45 GMT
  1636. Organization: Fresh Software
  1637.  
  1638. In article <osterCs7uG1.2x2@netcom.com>, oster@netcom.com (David Phillip
  1639. Oster) wrote:
  1640. > I am still using Apple's Universal Headers that came with THINK C 7,
  1641. > and I want to know if a missing piece in them has been fixed.
  1642. >...
  1643. > Type one is handled by ControlActionProcPtr which is defined in the
  1644. > Universal Header's Controls.h file.
  1645. > Type two is not handled. There should be a
  1646. > ControlIndicatorActionProcPtr and there isn't.
  1647. You're right.  It's a bug.  Report it to Apple.Bugs and MPW.Bugs at
  1648. Applelink.apple.com.  I've found a few other ommissions.  Hapily, the
  1649. people maintaining the headers are amenable to bug reports.
  1650. -- 
  1651. Bill Hofmann                                   wdh@netcom.com
  1652. Fresh Software and Instructional Design        voice: +1 510 524 0852
  1653. 1640 San Pablo Ave #C, Berkeley CA 94702 USA   fax:   +1 510 524 0853
  1654.  
  1655. ---------------------------
  1656.  
  1657. >From Kevin.R.Boyce@gsfc.nasa.gov (Kevin R. Boyce)
  1658. Subject: Where does data go when no PPCRead is pending?
  1659. Date: Tue, 28 Jun 1994 15:22:50 -0400
  1660. Organization: NASA/GSFC
  1661.  
  1662. Another PPC question:
  1663.  
  1664. What happens to data that gets sent to a port using PPCWrite when there is
  1665. no PPCRead pending on the other end?  Apparently it all just squirts out
  1666. the end of the pipe and onto the floor.  Is this true?  This would actually
  1667. be A Good Thing, since the only way I could be sent data I haven't
  1668. specifically asked for is if the user sticks his hands up something they
  1669. don't belong.  I just don't want to have trouble later with people slipping
  1670. on all that gooey data....
  1671.  
  1672. -- 
  1673. Kevin      Kevin.R.Boyce@gsfc.nasa.gov
  1674.         -- Happy 100th, Lowell Observatory and GAS --
  1675.  
  1676. +++++++++++++++++++++++++++
  1677.  
  1678. >From jumplong@aol.com (Jump Long)
  1679. Date: 29 Jun 1994 02:32:05 -0400
  1680. Organization: America Online, Inc. (1-800-827-6364)
  1681.  
  1682. In article <Kevin.R.Boyce-280694152250@sofa.gsfc.nasa.gov>,
  1683. Kevin.R.Boyce@gsfc.nasa.gov (Kevin R. Boyce) writes:
  1684.  
  1685. >What happens to data that gets sent to a port using PPCWrite when
  1686. there is
  1687. >no PPCRead pending on the other end?  Apparently it all just squirts
  1688. out
  1689. >the end of the pipe and onto the floor. Is this true? This would
  1690. actually
  1691. >be A Good Thing, since the only way I could be sent data I haven't
  1692. >specifically asked for is if the user sticks his hands up something
  1693. they
  1694. >don't belong.  I just don't want to have trouble later with people
  1695. slipping
  1696. >on all that gooey data....
  1697.  
  1698. The PPC Toolbox is implemented on top of ADSP which, unless the
  1699. connection breaks, is not supposed to loose data (and doesn't as far
  1700. as I know).
  1701.  
  1702. So, what happens to data passed to PPCWrite if there's no PPCRead
  1703. pending?  First, it sits in the senders buffers until PPC can pass it
  1704. off to ADSP. It can do that when ADSP has room in the send queue for
  1705. the data. Then, it sits in the ADSP send queue until there's room in
  1706. the receiver's ADSP receive queue.  Then, it sits in the ADSP receive
  1707. queue until that end of the connection reads it with a PPCRead
  1708. request.
  1709.  
  1710. Off the top of my head, I can't tell you how big the ADSP send and
  1711. receive buffers used by PPC Toolbox are, but you should be able to
  1712. find out by breaking on dspInit and looking at the ADSP connection
  1713. control block passed in by the PPC Toolbox code.
  1714.  
  1715. If you want to know more about ADSP, see Inside AppleTalk second
  1716. edition (for how the protocol works) and either Inside Macintosh
  1717. Volume VI, chapter 32 "The AppleTalk Manager" or Inside Macintosh:
  1718. Networking, chapter 5 "AppleTalk Data Stream Protocol".
  1719.  
  1720. If you want to know more about the PPC Toolbox, I believe APDA sells
  1721. a document that tells how to implement the PPC Toobox on top of NBP
  1722. and ADSP (this document doesn't describe the Macintosh implementation
  1723. in detail. Instead, it's intended audience are developer implementing
  1724. the PPC Toolbox on non-Macintosh platforms).
  1725.  
  1726. - Jim Luther
  1727.  
  1728.  
  1729. ---------------------------
  1730.  
  1731. End of C.S.M.P. Digest
  1732. **********************
  1733.  
  1734.  
  1735.  
  1736.